﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Liberty.Domain.ApplicationManagement;

using Liberty.Persistence.Kernel;

namespace Liberty.Application.ApplicationManagement
{
    [Serializable]
    public class ApplicantController : AbstractController
    {
        #region Constants
        #endregion

        #region Event Handlers
        #endregion

        #region Methods
        public Applicant ApplicantWith( long applicantOid )
        {
            return this.PersonBroker.ApplicantWith( applicantOid );
        }
        #endregion

        #region Properties
        public PersonBroker PersonBroker
        {
            get
            {
                return i_PersonBroker;
            }
            set
            {
                i_PersonBroker = value;
            }
        }
        #endregion

        #region Private Methods
        #endregion

        #region Private Properties
        #endregion

        #region Construction and Finalization
        public ApplicantController()
        {
            this.PersonBroker = new PersonBroker( this.ConnectionString );
        }
        #endregion

        #region Data Elements
        private PersonBroker i_PersonBroker;
	    #endregion
    }
}
